How to use the DATA attribute with JavaScript, HTML and CSS.
The.attr()methodisaconvenientwaytosetthevalueofattributes—especiallywhensettingmultipleattributesorusingvaluesreturnedbyafunction ...,ThesetAttribute()methodoftheElementinterfacesetsthevalueofanattributeonthespecifiedelement.Element.removeAttribu...。參考影片的文章的如下: